package wechat.bean.response.event.menu;

import org.dom4j.DocumentException;

import wechat.bean.response.EventMessageBean;

/**
 * 扫码推事件(即时)
 * Event：  scancode_push
 *
 */

public class MenuScancodePushBean extends EventMessageBean {
	private String ScanType;
	private String ScanResult;
	
	public MenuScancodePushBean(String str) throws DocumentException {
		super(str);
	}
	
	public MenuScancodePushBean(){
		
	}

	public String getScanType() {
		return ScanType;
	}

	public void setScanType(String scanType) {
		ScanType = scanType;
	}

	public String getScanResult() {
		return ScanResult;
	}

	public void setScanResult(String scanResult) {
		ScanResult = scanResult;
	}
	
	
	protected static final String Xpath_ScanType = "/xml/ScanCodeInfo/ScanType";
	protected static final String Xpath_ScanResult = "/xml/ScanCodeInfo/ScanResult";
	
	public void transform() throws Exception {
		super.transform();
		this.setScanType(getNodeText(Xpath_ScanType));
		this.setScanResult(getNodeText(Xpath_ScanResult));
	}
}
